package per.ethan.cloud.provider.api.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import per.ethan.cloud.common.entity.BaseEntity;

import javax.validation.constraints.DecimalMin;
import java.math.BigDecimal;

/**
 * @author Ethan
 * @date 2020/03/11 11:19
 */
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "支付实体类", parent = BaseEntity.class)
public class Payment extends BaseEntity {

    @ApiModelProperty(value = "金额 字段类型：decimal", required = true)
    @DecimalMin(value = "0", message = "金额不能是负数")
    private BigDecimal serial;

}
